<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>彩矿家 - 全球猎宝</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
  <![endif]-->
  <link rel="stylesheet" type="text/css" media="screen" href="__PUBLIC__/style/reset.css" />
  <link rel="stylesheet" type="text/css" media="screen" href="__PUBLIC__/style/purchasing.css" />
  <link rel="stylesheet" href="__PUBLIC__/libs/ft-carousel/ft-carousel.css" />
  <link rel="stylesheet" href="__PUBLIC__/libs/jqueryselect/htools.select.skin.css">
  
</head>

<body>
  <div class="container">
    
    <include file="./Application/Home/View/Index/inc/header.html" />

    <div class="banner">
      <div class="ft-carousel" id="carousel-banner">
        <ul class="carousel-inner">
          <li class="carousel-item"><img src="__PUBLIC__/images/purchasing_banner_1.jpg" /></li>
        </ul>
      </div>
    </div>
    <div class="form-content">
      <div class="form-wrapper">
        <form id="purchasing-form" action="{:U('purchasing')}" method="POST">
          <h2>请填写以下信息</h2>
          <div class="form-item clear-fix">
            <span class="f-left">宝石种类</span>
            <div class="_htools-selec-box f-left">
              <select class="" id="diamond-select" name="type">
                <option value="红宝石">红宝石</option>
                <option value="蓝宝石">蓝宝石</option>
                <option value="猫眼石">猫眼石</option>
                <option value="祖母绿">祖母绿</option>
              </select>
            </div>
          </div>
          <div class="form-item clear-fix">
            <span class="f-left">预算期间</span>
            <div class="_htools-selec-box f-left">
              <select class="" id="budget-select" name="price">
                <option value="0-4999">0-4999</option>
                <option value="5000-9999">5000-9999</option>
                <option value="10000-19999">10000-19999</option>
                <option value="20000以上">20000以上</option>
              </select>
            </div>
          </div>
          <div class="form-item clear-fix">
            <span class="f-left">姓名</span>
            <input class="f-left" type="text" placeholder="请输入姓名" name="uname">
          </div>
          <div class="form-item last clear-fix">
            <span class="f-left">电话</span>
            <input class="f-left" type="text" placeholder="请输入电话" name="phone">
          </div>
          <div class="submit-btn pointer">提交</div>
        </form>
      </div>
    </div>

    <include file="./Application/Home/View/Index/inc/footer.html" /> 

  </div>
</body>

<script src="__PUBLIC__/libs/jquery.min.js"></script>
<script src="__PUBLIC__/libs/jqueryselect/jquery.htools.select.js"></script>
<script src="__PUBLIC__/libs/ft-carousel/ft-carousel.min.js"></script>
<script type="text/javascript">
  // 轮播图
	$("#carousel-banner").FtCarousel({
    index: 0,
		auto: true,
		time: 3000,
		indicators: true,
		// buttons: false
  });
  // 下拉框美化
  var $diamondSelect = $("#diamond-select");
  var $budgetSelect = $('#budget-select');
  $diamondSelect.goSelectInput({
    height: 40,
    width: 290
  });
  $budgetSelect.goSelectInput({
    height: 40,
    width: 290
  });
  console.log("select的值为" + $diamondSelect.val() + ",选中文本为'" + $diamondSelect.find("option:selected").text() + "'");

  $(function(){
    $('.submit-btn').click(function() {
      var f = $('#purchasing-form')[0]
      f.submit()
    })
  })
</script>
</html>